import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import App from './register.vue'
import router from '../../router'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import { Swipe, SwipeItem ,Icon ,Popup ,Rate,Stepper,Button,Field,Step,Steps,NavBar,Uploader,Dialog,ImagePreview,Toast,Overlay,DropdownMenu,DropdownItem} from 'vant';
Vue.use(Swipe).use(SwipeItem).use(Icon).use(Popup).use(Rate).use(Stepper).use(Button).use(Field).use(Step).use(Steps).use(NavBar);
Vue.use(Uploader).use(ImagePreview).use(Toast).use(Overlay).use(DropdownMenu).use(DropdownItem).use(Dialog)
const registerRouter = new VueRouter({
  routes: router.register,
  mode: 'history'
})
new Vue({
  router: registerRouter,
  render: h => h(App)
}).$mount('#app')
